package com.zdft.promotion.common.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 抽象实体
 */
public class AbstractBean implements Serializable {
    /**
     * 记录创建人
     */
    private String createUser;

    /**
     * 记录创建时间
     */
    private Date createTime;

    /**
     * 记录最近更新人
     */
    private String updateUser;

    /**
     * 记录最近更新时间
     */
    private Date updateTime;

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
    	if(createTime == null){
    		this.createTime = new Date();
    	}
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
    	if(updateTime == null){
    		this.updateTime = new Date();
    	}
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

}
